// import * as Koa from 'koa';
import * as Router from 'koa-router';

// demo url : http://localhost:3000/demo/get-queries/oooo?q1=nimeifu&q2=123
export default (ctx: Router.IRouterContext, next: () => Promise<any>): any => {
    const rtn = {
        name : 'get demo with path params',
        message : '这是一个参数的 GET 请求',
        params: ctx.params,
        query: ctx.query
    };

    ctx.body = rtn;
};
